You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.AmpltToLog Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.AmpltToLog Method

Convert amplitude to logarithmic scale.

Syntax
C#
Visual Basic
public static double AmpltToLog([In] TDenseMtxVec Data, double Base, double span, double aMax, double aScale, bool Normalized);

Applies logarithm to Data. Base is the base of the logarithm and should be 10, if decibels are desired. The logarithm is then scaled by aScale according to the formula LogN(Base,Value)*aScale. Span defines the dynamic range on the left axis. If aScale is 20 and base is 10, the Span is in dB. The values below -span will be clipped. If Normalized is True, the maximum will be set to zero and minimum to -Span. The function returns -Span.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!